﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FactoryMonitor.Models
{
    public class OutWorkUserModel
    {
        /// <summary>
        /// 姓名
        /// </summary>
        public string Name { get; set; } = string.Empty;

        /// <summary>
        /// 职位
        /// </summary>
        public string Position { get; set; } = string.Empty;

        /// <summary>
        /// 缺勤天数
        /// </summary>
        public int OutWorkDays { get; set; }

        /// <summary>
        /// 宽度
        /// </summary>
        public int OutDayWidth
        {
            get
            {
                return OutWorkDays * 50 / 100;
            } 
        }
    }
}